package 抽象工厂.DBFactory;

//抽象的连接类
public abstract class Connection { }

//oracle连接类
class OracleConnection extends Connection{
    public OracleConnection(){
        System.out.println("获取到oracle连接类");
    }
}
//mysql连接类
class MySQLConnection extends Connection{
    public MySQLConnection(){
        System.out.println("获取到mysql连接类");
    }
}
